import React from 'react'

export default function Child({count, setCount}) {
  return (
    <div>
      <p>count: {count}</p>
      <button onClick={() => setCount(count + 4)}>更新父组件的count</button>
    </div>
  )
}
